package com.api.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import com.api.common.jwt.TokenIgnore;
import com.api.common.reqres.Request;
import com.api.common.reqres.Response;
import com.api.model.request.BaseDataListRequest;
import com.api.model.response.NullResponse;
import com.api.service.BaseDataService;

import io.swagger.annotations.ApiOperation;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author cfp
 * @since 2019-09-03
 */
@TokenIgnore
@RestController
public class BaseDataController {
	@Autowired
	private BaseDataService baseDataService;

	@ApiOperation(notes = "基础数据列表", value = "基础数据列表")
	@PostMapping(value = "/baseDataList.do")
	public Response<NullResponse> baseDataList(@RequestBody Request<BaseDataListRequest> request) throws Exception {
		return baseDataService.baseDataList(request);
	}
}
